var num = 98;
for (i = 0; i<num;i++){
    nbsp = num -i-1;
    for (k = 0;k<nbsp;k++){
              document.write("&nbsp");
          }

      var cad=(i+1)*2-1;
       for(j = 0; j<cad;j++){
           document.write("*");
       }
        document.write("<br>");

}


